import request from '@/utils/request'

// 查询留言板回复信息列表
export function listReply(query) {
  return request({
    url: '/campus/reply/list',
    method: 'get',
    params: query
  })
}

// 查询留言板回复信息详细
export function getReply(rId) {
  return request({
    url: '/campus/reply/' + rId,
    method: 'get'
  })
}

// 新增留言板回复信息
export function addReply(data) {
  return request({
    url: '/campus/reply',
    method: 'post',
    data: data
  })
}

// 修改留言板回复信息
export function updateReply(data) {
  return request({
    url: '/campus/reply',
    method: 'put',
    data: data
  })
}

// 删除留言板回复信息
export function delReply(rId) {
  return request({
    url: '/campus/reply/' + rId,
    method: 'delete'
  })
}

// 导出留言板回复信息
export function exportReply(query) {
  return request({
    url: '/campus/reply/export',
    method: 'get',
    params: query
  })
}